package edu.qichen.onlineBlog.log.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/5/1 13:46
 */
@Data
@TableName(value = "syslog")
@Accessors(chain = true)
public class Syslog implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;//id

    @TableField("operationUser")
    private String operationUser;//操作人

    @TableField("path")
    private String path;//请求路径

    @TableField("time")
    private String time;//方法执行时间

    @TableField("parameter")
    private String parameter;//方法入参

    @TableField("title")
    private String title;//操作方法

    @TableField("action")
    private String action;//方法描述

    @TableField("sysType")
    private Integer  sysType;//系统类型

    @TableField("opType")
    private Integer opType;//操作类型

    @TableField("create_time")
    private LocalDateTime createTime;

    public Syslog(String operationUser, String path, String time,
                  String parameter, String title, String action, Integer sysType, Integer opType) {
        super();
        this.operationUser = operationUser;
        this.path = path;
        this.time = time;
        this.parameter = parameter;
        this.title = title;
        this.action = action;
        this.sysType = sysType;
        this.opType = opType;
    }

}
